package service

import (
	"seat-service/model/dto"
	"time"
)

// DataView 数据看板接口
type DataView interface {
	//QueryReserveInformation 查询预约信息
	QueryReserveInformation() (reserveInformation dto.ReserveData, err error)
	//QueryReserveDataDay 按天查询预约的有几人
	QueryReserveDataDay(dayStart time.Time, dayEnd time.Time) (reserveDayCount []dto.ReserveDayCount, err error)
	//QueryReserveDataMonth 按月查询预约的有几人
	QueryReserveDataMonth(monthStart time.Time, monthEnd time.Time) (reserveMonthCount []dto.ReserveMonthCount, err error)
	//QueryReserveInformationByCollege 按学院筛选 每一个学院预约的百分比
	QueryReserveInformationByCollege(timeType uint) (collegeReserveInformation []dto.ReserveInformationCollege, err error)
	//QueryReserveInformationByRoom 筛选出最受欢迎的七间教室
	QueryReserveInformationByRoom() (classroomReserveInformation []dto.ReserveInformationClassroom, err error)
}
